home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Source / GNU / debug / gdb / Makefile next >
Makefile  |  1995-02-06  |  1KB  |  46 lines

  1. SUBDIRS = include glob libiberty readline gdb
  2. RC_ARCHS = `/usr/bin/arch`
  3. RC_CFLAGS = -arch `/usr/bin/arch`
  4.  
  5. all clean install stub:
  6.     if [ $(RC_JASPER) ];                        \
  7.     then                                \
  8.         for i in $(SUBDIRS) ; do                \
  9.             echo =========== make $@ for $$i =============;    \
  10.             (cd $$i; $(MAKE) $@                \
  11.                 RC_CFLAGS="$(RC_CFLAGS)"        \
  12.                 RC_ARCHS="$(RC_ARCHS)"            \
  13.                 DSTROOT=$$DSTROOT            \
  14.                 OBJROOT=$(OBJROOT)/$$i            \
  15.                 SYMROOT=$$SYMROOT);            \
  16.         done                            \
  17.     else                                \
  18.         for i in $(SUBDIRS) ; do                \
  19.             echo =========== make $@ for $$i =============;    \
  20.             (cd $$i; $(MAKE) $@                \
  21.                 RC_CFLAGS="$(RC_CFLAGS)"        \
  22.                 RC_ARCHS="$(RC_ARCHS)");        \
  23.         done                            \
  24.     fi
  25.  
  26. installsrc installGNUsrc: SRCROOT
  27.     mkdirs $(SRCROOT)
  28.     cp Makefile Makefile.lib $(SRCROOT)
  29.     for i in `echo $(SUBDIRS)`; \
  30.       do \
  31.         echo =========== make $@ for $$i =============;    \
  32.         (cd $$i; $(MAKE) SRCROOT=$$SRCROOT/$$i $@); \
  33.       done
  34.  
  35. $(DSTROOT):
  36.     mkdirs $@
  37.  
  38. SRCROOT:
  39.     @if [ -n "${$@}" ]; \
  40.     then \
  41.         exit 0; \
  42.     else \
  43.         echo Must define $@; \
  44.         exit 1; \
  45.     fi
  46.